package com.forum.article.feign;

import com.forum.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient("forum-user")
public interface UserFeign {
    /**
     * 远程调用用户模块的token认证
     * @param token
     * @return
     */
    @GetMapping("/user/forumUser/currentUser")
    public R currentUser(@RequestHeader("Authorization") String token);
}
